<!--
 * @Author: lujiangbo knight_lujb@163.com
 * @Date: 2024-05-10 09:36:37
 * @LastEditors: lujiangbo knight_lujb@163.com
 * @LastEditTime: 2024-05-15 11:23:07
 * @FilePath: /character-test/index.html
 * @Description: 
 * 
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. 
-->
<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>性格测试</title>
</head>

<body>
  <div id="app"></div>
  <script>
    document.addEventListener('gesturestart', function (e) {
      e.preventDefault();
    });
    document.addEventListener('copy', function (event) {
      event.preventDefault();
      event.clipboardData.setData('text/plain', '');
    });
    document.body.onselectstart = document.body.οndrag = function () {
      console.log('document.body.onselectstart');
      return false;
    }
    function fixIOSBottomBar() {
      var content = document.getElementById('content');
      var windowHeight = window.innerHeight;

      content.style.height = windowHeight + 'px';
    }

    // 监听窗口高度变化
    window.addEventListener('resize', fixIOSBottomBar);

    // 初始化页面高度
    fixIOSBottomBar();
  </script>
  <script type="module" src="/src/main.ts"></script>
</body>

</html>